from xhs_main import *
if __name__ == '__main__':
    task_begin("111111")

# comments = None
# try:
#     xhs_client = XhsClient("a1=18fb3fdefa93fq4eiw7jlurfwjefssz9m5u43uleg30000242159; webId=5224d0105276f9147f98a397ff721c65; gid=yYiDqifiqi6fyYiDqifdi2710jqiA4d3EWV17dk7FiEVd4q8iMMujq888J4Jy2j884dYyJJd; abRequestId=5224d0105276f9147f98a397ff721c65; xsecappid=xhs-pc-web; acw_tc=1e8bc2842f0b01b850a55cb27c6440f77a5713fb930b599fb612fec8c8febdcd; webBuild=4.18.0; websectiga=7750c37de43b7be9de8ed9ff8ea0e576519e8cd2157322eb972ecb429a7735d4; sec_poison_id=01d5d3d0-5545-4283-a930-5ae882a334a4; web_session=040069b51268616e3bbf623a6c344b52a82adb; unread={%22ub%22:%22661261b9000000001a015c59%22%2C%22ue%22:%226654510b00000000050079dd%22%2C%22uc%22:24}", sign=sign)
#     comments = xhs_client.get_note_all_comments("660cdfce000000001a00f9e2")
#     #print(comments)
# except Exception as e :
#     #print(e)
#     logger.warning(f"fail to get commnet {id}, {str(e)}")
